package cn.tedu.project.oa.sys.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class LoginPara {
    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotNull(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码",required = true)
    private String code;

    @NotNull(message = "验证码key不能为空")
    @ApiModelProperty(value = "captchaKey")
    private String captchaKey;
}

